package com.after.saas.file.pattern.observe;

/**
 * @Classname ExportCompay
 * @Description TODO
 * @auth after
 * @since 2023/6/23 23:46
 */
public class ExportCompany implements Company {
    @Override
    public void response(int num) {
        if (num > 0) {
            System.out.printf("人民币汇率升值%d个基点，降低了出口产品收入，降低了出口公司的销售利润率%n", num);
        } else if (num < 0) {
            System.out.printf("人民币汇率贬值%d个基点，提升了出口产品收入，提升了出口公司的销售利润率。%n", -num);
        }
    }
}
